/*
 * StrahlentherapieVPrimitiveScorer3D.hh
 *
 *  Created on: Nov 27, 2010
 *      Author: holger
 */

#ifndef StrahlentherapieVPrimitiveScorer3D_h
#define StrahlentherapieVPrimitiveScorer3D_h 1

#include "G4VPrimitiveScorer.hh"
#include "G4THitsMap.hh"

class StrahlentherapieVPrimitiveScorer3D : public G4VPrimitiveScorer
{
	public:
		StrahlentherapieVPrimitiveScorer3D(G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=0, G4int depj=1, G4int depk=2);
		virtual ~StrahlentherapieVPrimitiveScorer3D() {}
		
		void Initialize(G4HCofThisEvent * HCE);
		void clear();
	
	protected:
		G4int GetIndex(G4TouchableHistory* ROhist);
		
		G4int fDepthi;
		G4int fDepthj;
		G4int fDepthk;
		
		G4int HCID;
		G4THitsMap<G4double>* EvtMap;
};

#endif
